<?php
/**
 ***** 扶摇而上、抱守本真 ******
 * @author Dana
 * @Date 2021/6/7
 */

$arr = ['apple','orange','mango','pear'];

$newArr1 = array_map('strtoupper',$arr);


$arr2 = ['cauliflower','lettuce','kale','romaine'];
function map($a,$b){
    var_dump($a,$b);
}

array_map('map', $arr, $arr2);